package com.bocomm.tracevisualization.global;


import com.bocomm.tracevisualization.api.result.CodeMessage;

import java.io.Serializable;

/**
 * @author 94509
 */
public class BusinessException extends RuntimeException implements Serializable {


    private CodeMessage codeMessage;

    public BusinessException(CodeMessage codeMessage) {
        super(codeMessage.getMessage());
        this.codeMessage = codeMessage;
    }

    public CodeMessage getExceptionId() {
        return codeMessage;
    }
}
